package com.base.tree;

public enum TreeNodeStyleType {
	Style1("style1"),
	Style2("style2"),
	Style3("style3"),
	Style4("style4"),
	Style5("style5"),
	Style6("style6");
	
	private String value = "";
	
	private TreeNodeStyleType(String value) {
		this.value = value;
	}
	
	public String getValue() {
		return this.value;
	}
	
	public static TreeNodeStyleType getType(String style) {
		for (TreeNodeStyleType type : values()) {
			if(type.getValue().equalsIgnoreCase(style)){
				return type;
			}
		}
		return Style1;
	}
}
